package com.example.springjishi.service.impl;


import com.example.springjishi.mapper.CarMapper;
import com.example.springjishi.pojo.Car;
import com.example.springjishi.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public List<Car> selectCarList(Car car, Integer startInedx, Integer pageSize) {
        return carMapper.selectCarList(car, startInedx, pageSize);
    }

    @Override
    public Integer selectCarCount(Car car) {
        return carMapper.selectCarCount(car);
    }

    @Override
    public Car selectCar(Integer carId) {
        return carMapper.selectCar(carId);
    }

    @Override
    public Integer modifyCar(Car car) {
        return carMapper.modifyCar(car);
    }
}
